<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面未找到</title>
    <!-- 引入公共样式 -->
    <link rel="stylesheet" href="css/common.css">
    <style>
        /* 覆盖公共样式中的背景图，使用纯色背景 */
        html, body {
            background-image: none;
            background-color: #f8f9fa; 
        }

        .container {
            display: flex;
            justify-content: center; /* 水平居中 */
            align-items: center;     /* 垂直居中 */
            min-height: 100vh; /* 占满整个视口高度 */
            padding: 20px; /* 防止小屏幕内容溢出 */
        }

        .error-container {
            text-align: center;
            padding: 80px 50px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow: auto;
        }

        .error-code {
            font-size: clamp(8rem, 25vw, 15rem);
            font-weight: bold;
            color: #323232;
            margin-bottom: 30px;
            line-height: 1;
        }

        .error-message {
            font-size: clamp(1.5rem, 5vw, 2rem);
            color: #555;
            margin-bottom: 40px;
            line-height: 1.8;
        }

        .btn {
            padding: 16px 32px;
            text-decoration: none;
            border-radius: 6px;
            font-size: clamp(1rem, 3vw, 1.25rem);
            transition: all 0.3s;
            margin: 0 15px;
            cursor: pointer;
            min-width: 160px;
        }

        .btn-home {
            background-color: #323232;
            color: white;
            border: none;
        }

        .btn-home:hover {
            background-color: #555;
            transform: translateY(-2px);
        }

        .btn-back {
            background-color: transparent;
            color: #323232;
            border: 2px solid #323232;
        }

        .btn-back:hover {
            background-color: #f5f5f5;
            transform: translateY(-2px);
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="error-container">
            <div class="error-code">404</div>
            <div class="error-message">
                抱歉，您所访问的页面不存在<br>
                可能是链接错误或页面已被移除
            </div>
            <div>
                <a href="/register.html" class="btn btn-home">返回注册</a>
                
                <button class="btn btn-back" onclick="window.location.href='/login.html'">返回登录</button>
            </div>
        </div>
    </div>
</body>
</html>
    